<template>
  <div>
    <button @click="go">按钮</button>
    <!-- 第三方动画库 再main.js种引入  在transition中直接使用 -->
    <transition
      enter-active-class="animate__fadeInDown"
      leave-active-class="animate__fadeOutDown"
    >
      <h3 v-show="flag" class="animate__animated">我是动画效果展示</h3>
    </transition>
  </div>
</template>

<script>
export default {
  name: "Tab",
  data() {
    return {
      flag: true,
    };
  },
  methods: {
    go() {
      this.flag = !this.flag;
    },
  },
};
</script>

<style>
</style>